package com.jddup.test.pojo.mysql;

import com.baomidou.mybatisplus.annotation.*;
import com.jddup.common.annotations.ColumnDes;

import java.math.BigDecimal;
import java.util.Date;

@TableName("t_ws_positions_sub")
public class WsPositionsSub {
    @TableId(value = "id", type = IdType.UUID)
    private String id;
    @TableField("op")
    private String op;
    @TableField("topic")
    private String topic;
    @TableField("event")
    private String event;
    @TableField("symbol")
    private String symbol;
    @TableField("contract_code")
    private String contractCode;
    @TableField("contract_type")
    private String contractType;
    @TableField("volume")
    private BigDecimal volume;
    @TableField("available")
    private BigDecimal available;
    @TableField("frozen")
    private BigDecimal frozen;
    @TableField("cost_open")
    private BigDecimal costOpen;
    @TableField("cost_hold")
    private BigDecimal costHold;
    @TableField("profit_unreal")
    private BigDecimal profitUnreal;
    @TableField("profit_rate")
    private BigDecimal profitRate;
    @TableField("profit")
    private BigDecimal profit;
    @TableField("position_margin")
    private BigDecimal positionMargin;
    @TableField("lever_rate")
    private Integer leverRate;
    @TableField("direction")
    private String direction;
    @TableField("last_price")
    private BigDecimal lastPrice;
    @TableField(value = "create_time", updateStrategy = FieldStrategy.NEVER)
    @ColumnDes(isNullable = false,defaultValue = " DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP")
    private Date createTime;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getOp() {
        return op;
    }

    public void setOp(String op) {
        this.op = op;
    }

    public String getTopic() {
        return topic;
    }

    public void setTopic(String topic) {
        this.topic = topic;
    }

    public String getEvent() {
        return event;
    }

    public void setEvent(String event) {
        this.event = event;
    }

    public String getSymbol() {
        return symbol;
    }

    public void setSymbol(String symbol) {
        this.symbol = symbol;
    }

    public String getContractCode() {
        return contractCode;
    }

    public void setContractCode(String contractCode) {
        this.contractCode = contractCode;
    }

    public String getContractType() {
        return contractType;
    }

    public void setContractType(String contractType) {
        this.contractType = contractType;
    }

    public BigDecimal getVolume() {
        return volume;
    }

    public void setVolume(BigDecimal volume) {
        this.volume = volume;
    }

    public BigDecimal getAvailable() {
        return available;
    }

    public void setAvailable(BigDecimal available) {
        this.available = available;
    }

    public BigDecimal getFrozen() {
        return frozen;
    }

    public void setFrozen(BigDecimal frozen) {
        this.frozen = frozen;
    }

    public BigDecimal getCostOpen() {
        return costOpen;
    }

    public void setCostOpen(BigDecimal costOpen) {
        this.costOpen = costOpen;
    }

    public BigDecimal getCostHold() {
        return costHold;
    }

    public void setCostHold(BigDecimal costHold) {
        this.costHold = costHold;
    }

    public BigDecimal getProfitUnreal() {
        return profitUnreal;
    }

    public void setProfitUnreal(BigDecimal profitUnreal) {
        this.profitUnreal = profitUnreal;
    }

    public BigDecimal getProfitRate() {
        return profitRate;
    }

    public void setProfitRate(BigDecimal profitRate) {
        this.profitRate = profitRate;
    }

    public BigDecimal getProfit() {
        return profit;
    }

    public void setProfit(BigDecimal profit) {
        this.profit = profit;
    }

    public BigDecimal getPositionMargin() {
        return positionMargin;
    }

    public void setPositionMargin(BigDecimal positionMargin) {
        this.positionMargin = positionMargin;
    }

    public Integer getLeverRate() {
        return leverRate;
    }

    public void setLeverRate(Integer leverRate) {
        this.leverRate = leverRate;
    }

    public String getDirection() {
        return direction;
    }

    public void setDirection(String direction) {
        this.direction = direction;
    }

    public BigDecimal getLastPrice() {
        return lastPrice;
    }

    public void setLastPrice(BigDecimal lastPrice) {
        this.lastPrice = lastPrice;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
}
